<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="generator" content="ApiGen; http://apigen.org" />

	<title>Class Nette\Config\Config</title>

	<link rel="stylesheet" href="resources/style.css?v=2011071314" type="text/css" media="all" />
	<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
	<link rel="search" href="opensearch.xml" type="application/opensearchdescription+xml" title="Nette Framework API documentation" />
	<script type="text/javascript" src="resources/combined.js"></script>
	<script type="text/javascript" src="allclasses.js"></script>
</head>

<body>
<div id="left">
	<a href="allclasses.html">All Classes</a>

	<h3>Namespaces</h3>
	<ul>
		<li><a href="namespace-none.html">none</a>
		</li>
		<li><a href="namespace-Nette.html">Nette</a>
		</li>
		<li><a href="namespace-Nette.Application.html">Nette\Application</a>
		</li>
		<li><a href="namespace-Nette.Caching.html">Nette\Caching</a>
		</li>
		<li><a href="namespace-Nette.Collections.html">Nette\Collections</a>
		</li>
		<li class="active"><a href="namespace-Nette.Config.html">Nette\Config</a>
		</li>
		<li><a href="namespace-Nette.Forms.html">Nette\Forms</a>
		</li>
		<li><a href="namespace-Nette.IO.html">Nette\IO</a>
		</li>
		<li><a href="namespace-Nette.Loaders.html">Nette\Loaders</a>
		</li>
		<li><a href="namespace-Nette.Mail.html">Nette\Mail</a>
		</li>
		<li><a href="namespace-Nette.Reflection.html">Nette\Reflection</a>
		</li>
		<li><a href="namespace-Nette.Security.html">Nette\Security</a>
		</li>
		<li><a href="namespace-Nette.Templates.html">Nette\Templates</a>
		</li>
		<li><a href="namespace-Nette.Web.html">Nette\Web</a>
		</li>
		<li><a href="namespace-PHP.html">PHP</a>
		</li>
	</ul>

	<hr />

	<h3>Classes</h3>

	<ul>
		<li class="active"><a href="Nette.Config.Config.html">Config</a></li>
		<li><a href="Nette.Config.ConfigAdapterIni.html">ConfigAdapterIni</a></li>
	</ul>

	<h3>Interfaces</h3>

	<ul>
		<li><a href="Nette.Config.IConfigAdapter.html">IConfigAdapter</a></li>
	</ul>

</div>

<div id="right">
	<form action="http://www.google.com/cse" id="search" onsubmit="if(this.q.value.indexOf('more:')==-1)this.q.value+=' more:api'">
		<input type="hidden" name="cx" value="011549293477758430224:vxofa9ufnhc" /><input type="hidden" name="ie" value="UTF-8" /><input type="text" name="q" class="text" /><input type="submit" value="Search" />
	</form>

<div id="navigation">
	<ul>
		<li><a href="overview.html" title="Summary of all namespaces">Overview</a></li>
		<li><a href="namespace-Nette.Config.html" title="Summary of Nette\Config">Namespace</a></li>
		<li class="active">Class</li>
		<li><a href="elements.html">Elements</a></li>
	</ul>
</div>

<div id="content">
	<div id="classSummary">
		<p>namespace <a href="namespace-Nette.Config.html">Nette\Config</a></p>

		<h1>Class Config</h1>

		<div class="classDescription">
		
<p>Configuration storage.</p>

		</div>

		<dl class="tree">
			<dd style="padding-left:0px">
				<a href="ArrayObject.html">ArrayObject</a>
				 implements <a href="IteratorAggregate.html">IteratorAggregate</a>, <a href="Traversable.html">Traversable</a>, <a href="ArrayAccess.html">ArrayAccess</a>, <a href="Serializable.html">Serializable</a>, <a href="Countable.html">Countable</a>
			</dd>
			<dd style="padding-left:30px">
				<img src="resources/inherit.gif" alt="extended by" />
				<a href="Nette.Collections.Collection.html">Nette\Collections\Collection</a>
				 implements <a href="Nette.Collections.ICollection.html">Nette\Collections\ICollection</a>
			</dd>
			<dd style="padding-left:60px">
				<img src="resources/inherit.gif" alt="extended by" />
				<a href="Nette.Collections.Hashtable.html">Nette\Collections\Hashtable</a>
				 implements <a href="Nette.Collections.IMap.html">Nette\Collections\IMap</a>
			</dd>
			<dd style="padding-left:90px">
				<img src="resources/inherit.gif" alt="extended by" />
<b>Nette\Config\Config</b>				
			</dd>
		</dl>



		<div class="classInfo">
			
				<b>Author:</b> David Grudl<br />
			<b>Located at</b> <a href="source-Config.Config.php.html#18">/Config/Config.php</a><br />
		</div>
	</div>


	<div id="methodSummary">
		<table class="summary">
		<caption>Method Summary</caption>
		<tr data-order="0 registerExtension" id="_registerExtension">
			<td align="right" width="1%"><code class="nowrap">
				 public static
				void
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_registerExtension">#</a>
			<code class="nowrap">
				<a href="source-Config.Config.php.html#37" title="go to source code"><b>registerExtension</b></a>(
					string
					<var>$extension</var>, 
					string
					<var>$class</var>
			)</code>

			<div class="short">
				
<p>Registers adapter for given file extension.</p>

			</div>

			<div class="detailed">
				
<p>Registers adapter for given file extension.</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$extension</code> string file extension<br />
						<code>$class</code> string class name (IConfigAdapter)<br />
					</div>



			</div>
			</td>
		</tr>
		<tr data-order="0 fromFile" id="_fromFile">
			<td align="right" width="1%"><code class="nowrap">
				 public static
				<a href="Nette.Config.Config.html">Config</a>
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_fromFile">#</a>
			<code class="nowrap">
				<a href="source-Config.Config.php.html#58" title="go to source code"><b>fromFile</b></a>(
					string
					<var>$file</var>, 
					string
					<var>$section</var> = <span class="php-keyword1">NULL</span>, 
					int
					<var>$flags</var> = <span class="php-num">1</span>
			)</code>

			<div class="short">
				
<p>Creates new configuration object from file.</p>

			</div>

			<div class="detailed">
				
<p>Creates new configuration object from file.</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$file</code> string file name<br />
						<code>$section</code> string section to load<br />
						<code>$flags</code> int flags (readOnly, autoexpand variables)<br />
					</div>

					<h4>Returns</h4>
					<div class="smallList"><a href="Nette.Config.Config.html">Config</a> </div>


			</div>
			</td>
		</tr>
		<tr data-order="1 __construct" id="___construct">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#___construct">#</a>
			<code class="nowrap">
				<a href="source-Config.Config.php.html#79" title="go to source code"><b>__construct</b></a>(
					array
					<var>$arr</var> = <span class="php-keyword1">NULL</span>, 
					
					<var>$flags</var> = <span class="php-num">1</span>
			)</code>

			<div class="short">
				
			</div>

			<div class="detailed">
				


					<h4>Parameters</h4>
					<div class="smallList">
						<code>$arr</code> array to wrap<br />
						<code>$flags</code> <br />
					</div>


					<h4>Throws</h4>
					<div class="smallList">
						<a href="InvalidArgumentException.html">InvalidArgumentException</a> <br />
					</div>

			</div>
			</td>
		</tr>
		<tr data-order="1 save" id="_save">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				void
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_save">#</a>
			<code class="nowrap">
				<a href="source-Config.Config.php.html#100" title="go to source code"><b>save</b></a>(
					string
					<var>$file</var>, 
					string
					<var>$section</var> = <span class="php-keyword1">NULL</span>
			)</code>

			<div class="short">
				
<p>Save configuration to file.</p>

			</div>

			<div class="detailed">
				
<p>Save configuration to file.</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$file</code> string file<br />
						<code>$section</code> string section to write<br />
					</div>



			</div>
			</td>
		</tr>
		<tr data-order="1 expand" id="_expand">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				void
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_expand">#</a>
			<code class="nowrap">
				<a href="source-Config.Config.php.html#123" title="go to source code"><b>expand</b></a>(
			)</code>

			<div class="short">
				
<p>Expand all variables.</p>

			</div>

			<div class="detailed">
				
<p>Expand all variables.</p>






			</div>
			</td>
		</tr>
		<tr data-order="1 import" id="_import">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				void
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_import">#</a>
			<code class="nowrap">
				<a href="source-Config.Config.php.html#144" title="go to source code"><b>import</b></a>(
					array|<a href="Traversable.html">Traversable</a>
					<var>$arr</var>
			)</code>

			<div class="short">
				
<p>Import from array or any traversable object.</p>

			</div>

			<div class="detailed">
				
<p>Import from array or any traversable object.</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$arr</code> array|<a href="Traversable.html">Traversable</a> <br />
					</div>


					<h4>Throws</h4>
					<div class="smallList">
						<a href="InvalidArgumentException.html">InvalidArgumentException</a> <br />
					</div>

			</div>
			</td>
		</tr>
		<tr data-order="1 toArray" id="_toArray">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				array
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_toArray">#</a>
			<code class="nowrap">
				<a href="source-Config.Config.php.html#165" title="go to source code"><b>toArray</b></a>(
			)</code>

			<div class="short">
				
<p>Returns an array containing all of the elements in this collection.</p>

			</div>

			<div class="detailed">
				
<p>Returns an array containing all of the elements in this collection.</p>




					<h4>Returns</h4>
					<div class="smallList">array </div>


			</div>
			</td>
		</tr>
		<tr data-order="1 freeze" id="_freeze">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				void
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#_freeze">#</a>
			<code class="nowrap">
				<a href="source-Config.Config.php.html#182" title="go to source code"><b>freeze</b></a>(
			)</code>

			<div class="short">
				
<p>Makes the object unmodifiable.</p>

			</div>

			<div class="detailed">
				
<p>Makes the object unmodifiable.</p>






			</div>
			</td>
		</tr>
		<tr data-order="1 __clone" id="___clone">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				void
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#___clone">#</a>
			<code class="nowrap">
				<a href="source-Config.Config.php.html#198" title="go to source code"><b>__clone</b></a>(
			)</code>

			<div class="short">
				
<p>Creates a modifiable clone of the object.</p>

			</div>

			<div class="detailed">
				
<p>Creates a modifiable clone of the object.</p>






			</div>
			</td>
		</tr>
		<tr data-order="1 __get" id="___get">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				mixed
				&amp;
				</code>
			</td>

			<td>
			<a class="anchor" href="#___get">#</a>
			<code class="nowrap">
				<a href="source-Config.Config.php.html#220" title="go to source code"><b>__get</b></a>(
					int
					<var>$key</var>
			)</code>

			<div class="short">
				
<p>Returns item. Do not call directly.</p>

			</div>

			<div class="detailed">
				
<p>Returns item. Do not call directly.</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$key</code> int index<br />
					</div>

					<h4>Returns</h4>
					<div class="smallList">mixed </div>


			</div>
			</td>
		</tr>
		<tr data-order="1 __set" id="___set">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				void
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#___set">#</a>
			<code class="nowrap">
				<a href="source-Config.Config.php.html#233" title="go to source code"><b>__set</b></a>(
					int
					<var>$key</var>, 
					object
					<var>$item</var>
			)</code>

			<div class="short">
				
<p>Inserts (replaces) item. Do not call directly.</p>

			</div>

			<div class="detailed">
				
<p>Inserts (replaces) item. Do not call directly.</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$key</code> int index<br />
						<code>$item</code> object <br />
					</div>



			</div>
			</td>
		</tr>
		<tr data-order="1 __isset" id="___isset">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				bool
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#___isset">#</a>
			<code class="nowrap">
				<a href="source-Config.Config.php.html#246" title="go to source code"><b>__isset</b></a>(
					string
					<var>$key</var>
			)</code>

			<div class="short">
				
<p>Exists item?</p>

			</div>

			<div class="detailed">
				
<p>Exists item?</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$key</code> string name<br />
					</div>

					<h4>Returns</h4>
					<div class="smallList">bool </div>


			</div>
			</td>
		</tr>
		<tr data-order="1 __unset" id="___unset">
			<td align="right" width="1%"><code class="nowrap">
				 public 
				void
				
				</code>
			</td>

			<td>
			<a class="anchor" href="#___unset">#</a>
			<code class="nowrap">
				<a href="source-Config.Config.php.html#258" title="go to source code"><b>__unset</b></a>(
					string
					<var>$key</var>
			)</code>

			<div class="short">
				
<p>Removes the element at the specified position in this list.</p>

			</div>

			<div class="detailed">
				
<p>Removes the element at the specified position in this list.</p>



					<h4>Parameters</h4>
					<div class="smallList">
						<code>$key</code> string name<br />
					</div>



			</div>
			</td>
		</tr>

		</table>
	</div>


	<h2>Methods Inherited From <a href="Nette.Collections.Hashtable.html#methodSummary">Nette\Collections\Hashtable</a></h2>
	<div class="box"><code>
		<a href="Nette.Collections.Hashtable.html#_add">add()</a>, <a href="Nette.Collections.Hashtable.html#_append">append()</a>, <a href="Nette.Collections.Hashtable.html#_getKeys">getKeys()</a>, <a href="Nette.Collections.Hashtable.html#_search">search()</a>, <a href="Nette.Collections.Hashtable.html#_import">import()</a>, <a href="Nette.Collections.Hashtable.html#_get">get()</a>, <a href="Nette.Collections.Hashtable.html#_throwKeyNotFound">throwKeyNotFound()</a>, <a href="Nette.Collections.Hashtable.html#_offsetSet">offsetSet()</a>, <a href="Nette.Collections.Hashtable.html#_offsetGet">offsetGet()</a>, <a href="Nette.Collections.Hashtable.html#_offsetExists">offsetExists()</a>, <a href="Nette.Collections.Hashtable.html#_offsetUnset">offsetUnset()</a>
	</code></div>
	<h2>Methods Inherited From <a href="Nette.Collections.Collection.html#methodSummary">Nette\Collections\Collection</a></h2>
	<div class="box"><code>
		<a href="Nette.Collections.Collection.html#___construct">__construct()</a>, <a href="Nette.Collections.Collection.html#_append">append()</a>, <a href="Nette.Collections.Collection.html#_remove">remove()</a>, <a href="Nette.Collections.Collection.html#_search">search()</a>, <a href="Nette.Collections.Collection.html#_clear">clear()</a>, <a href="Nette.Collections.Collection.html#_contains">contains()</a>, <a href="Nette.Collections.Collection.html#_import">import()</a>, <a href="Nette.Collections.Collection.html#_getItemType">getItemType()</a>, <a href="Nette.Collections.Collection.html#_setReadOnly" class="deprecated">setReadOnly()</a>, <a href="Nette.Collections.Collection.html#_isReadOnly" class="deprecated">isReadOnly()</a>, <a href="Nette.Collections.Collection.html#_beforeAdd">beforeAdd()</a>, <a href="Nette.Collections.Collection.html#_getIterator">getIterator()</a>, <a href="Nette.Collections.Collection.html#_exchangeArray">exchangeArray()</a>, <a href="Nette.Collections.Collection.html#_setArray">setArray()</a>, <a href="Nette.Collections.Collection.html#_getReflection">getReflection()</a>, <a href="Nette.Collections.Collection.html#___call">__call()</a>, <a href="Nette.Collections.Collection.html#___callStatic">__callStatic()</a>, <a href="Nette.Collections.Collection.html#___get">__get()</a>, <a href="Nette.Collections.Collection.html#___set">__set()</a>, <a href="Nette.Collections.Collection.html#___isset">__isset()</a>, <a href="Nette.Collections.Collection.html#___unset">__unset()</a>, <a href="Nette.Collections.Collection.html#_freeze">freeze()</a>, <a href="Nette.Collections.Collection.html#_isFrozen">isFrozen()</a>, <a href="Nette.Collections.Collection.html#___clone">__clone()</a>, <a href="Nette.Collections.Collection.html#_updating">updating()</a>
	</code></div>
	<h2>Methods Inherited From <a href="ArrayObject.html#methodSummary">ArrayObject</a></h2>
	<div class="box"><code>
		<a href="ArrayObject.html#___construct">__construct()</a>, <a href="ArrayObject.html#_offsetExists">offsetExists()</a>, <a href="ArrayObject.html#_offsetGet">offsetGet()</a>, <a href="ArrayObject.html#_offsetSet">offsetSet()</a>, <a href="ArrayObject.html#_offsetUnset">offsetUnset()</a>, <a href="ArrayObject.html#_append">append()</a>, <a href="ArrayObject.html#_getArrayCopy">getArrayCopy()</a>, <a href="ArrayObject.html#_count">count()</a>, <a href="ArrayObject.html#_getFlags">getFlags()</a>, <a href="ArrayObject.html#_setFlags">setFlags()</a>, <a href="ArrayObject.html#_asort">asort()</a>, <a href="ArrayObject.html#_ksort">ksort()</a>, <a href="ArrayObject.html#_uasort">uasort()</a>, <a href="ArrayObject.html#_uksort">uksort()</a>, <a href="ArrayObject.html#_natsort">natsort()</a>, <a href="ArrayObject.html#_natcasesort">natcasesort()</a>, <a href="ArrayObject.html#_unserialize">unserialize()</a>, <a href="ArrayObject.html#_serialize">serialize()</a>, <a href="ArrayObject.html#_getIterator">getIterator()</a>, <a href="ArrayObject.html#_exchangeArray">exchangeArray()</a>, <a href="ArrayObject.html#_setIteratorClass">setIteratorClass()</a>, <a href="ArrayObject.html#_getIteratorClass">getIteratorClass()</a>
	</code></div>


	<div id="constantSummary">
		<table class="summary">
		<caption>Constant Summary</caption>
		<tr data-order="READONLY" id="READONLY">
			<td align="right" width="1%"><code><b>READONLY</b></code></td>
			<td><code><span class="php-num">1</span></code> <a href="#READONLY" class="anchor">#</a></td>
		</tr>
		<tr data-order="EXPAND" id="EXPAND">
			<td align="right" width="1%"><code><b>EXPAND</b></code></td>
			<td><code><span class="php-num">2</span></code> <a href="#EXPAND" class="anchor">#</a></td>
		</tr>
		</table>
	</div>

	<h2>Constants Inherited From <a href="ArrayObject.html#constantSummary">ArrayObject</a></h2>
	<div class="box"><code>STD_PROP_LIST, ARRAY_AS_PROPS</code></div>




</div>

	<div id="footer">
		Nette Framework API documentation generated by <a href="http://apigen.org">ApiGen</a>
	</div>
</div>
</body>
</html>
